package com.mall.order.controller;

import com.mall.common.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class hello {
    @GetMapping("/test")
    public String test(){
        return "hello";
    }
    @GetMapping("/h")
    public Result<?> test2(){
        throw new RuntimeException("这是一个测试异常");
    }
}
